package minidb.parse.exps;

public class CreateViewExp extends SQLExp
{
	public ViewList viewList;
	public String viewName;
	public SelectExp selectExp;
	
	public CreateViewExp(ViewList vl,String vn,SelectExp se)
	{
		this.viewList=vl;
		this.viewName=vn;
		this.selectExp=se;
	}
	
	
	@Override
	public String Print()
	{
		return "CREATE VIEW "+this.viewList.Print()+" "+this.viewName+" AS("
			+"\n"+this.selectExp.Print()+")\n";
	}

}
